package com.cssl.openFeign;

import com.cssl.domain.DtsCategory;
import com.cssl.domain.dto.DtsCategoryDto;

import com.cssl.util.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(value = "DtsShopProvider9090",path = "/category",contextId = "6")
public interface CategoryFeignClient {
    @PostMapping("/getLevel2")
    Result getLevel2(@RequestBody Map map);

    @PostMapping("/getCategory")
    Result getCategory(@RequestBody Map map);

    @PostMapping("/getL1AndL2")
    Result getL1AndL2();
    @PostMapping("/clickL1GetL2")
    @ApiOperation(value = "获取选中的一级分类及二级分类")
     Result clickL1GetL2(@RequestBody DtsCategory category);

    @PostMapping("/getLevel2AndCheckedL2")
    @ApiOperation(value = "获取二级分类及选中的二级分类", notes = "id")
     Result getLevel2AndCheckedL2(@RequestBody DtsCategory category);

    @PostMapping("/list")
    Result dtsorderlist(@RequestBody DtsCategoryDto dtsCategoryDto);
    @DeleteMapping("/delete")
    Result categorydelete(@RequestParam("ids") String ids);
    @PostMapping("/updatecategory")
    Result updatecategory(@RequestBody Map updatecategory);
    @PostMapping("/addcategory")
    Result addcategory(@RequestBody Map addcategory);
}
